package com.xywl.escort.view.notice

import android.os.Bundle
import com.alibaba.android.arouter.facade.annotation.Autowired
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import com.xywl.escort.R
import com.xywl.escort.base.BaseActivity
import kotlinx.android.synthetic.main.activity_notice_detail.*
import timber.log.Timber

@Route(path = "/xy/notice/detail")
class NoticeDetailActivity : BaseActivity() {

    @Autowired
    @JvmField
    var title: String? = null
    @Autowired
    @JvmField
    var time: String? = null
    @Autowired
    @JvmField
    var content: String? = null

    override fun onCreate(savedInstanceState: Bundle?) {
        ARouter.getInstance().inject(this)
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_notice_detail)

        showBackButton()
        setTitleText(getString(R.string.notice))

        Timber.tag("NoticeDetailActivity").e("title=$title")
        Timber.tag("NoticeDetailActivity").e("content=$content")
        Timber.tag("NoticeDetailActivity").e("time=$time")

        text_title.text = title
        text_content.text = content
        text_time.text = time
    }
}
